#include <QCoreApplication>
#include <iostream>
#include <math.h>
using namespace std;
int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
cout << "Vvedite trehznachnoe chislo"<<endl;
    int ama,b,c,d,g,h,f;
    cin >>ama;

b=(ama/100);
c=(ama-(b*100));
d=(c/10);
g=(c-(d*10));
h=(b+d+g);
cout<<"Cumma"<<endl;
cout<<h<<endl;
f=(b*d*g);
cout<<"Proizvedenie"<<endl;
cout<<f<<endl;
    return 0;
}
